package day03;

public class operDemo {
    public operDemo() {
    }

    public static void main(String[] args) {

        //a++;单独使用等于a+1;++b单独使用等于b+1
        //a++;被使用时等于a;++b被使用时等于b+1
       /* int a=5,b=6;
        a++;//
       ++b;
        System.out.println(a);//6
        System.out.println(b);//7
        System.out.println(a++);//6
        System.out.println(++b);//8
        int c=a++;
        int d=++b;
        System.out.println(c);
        System.out.println(d);*/
        //a--;单独使用等于a-1;--b单独使用等于b-1
        //a--;被使用时等于a;--b被使用时等于b-1
       /* int a=4,b=6;
        int c= a--;
        int d =--b;
        System.out.println(a);//3
        System.out.println(b);//5
        System.out.println(c);//4
        System.out.println(d);//5*/
       /* int a=4,b=5,c=6;
        boolean z = a==b;
        System.out.println(z);//false
        System.out.println(a%c>1);//true
        System.out.println(b*a>c);//true
        System.out.println(a++<b);//true
        System.out.println(b==a);//true*/
/*int age=88;
boolean c=88<=100&&88>=20;
        System.out.println(c);//true
        System.out.println(88<=66&&88>=88);//float*/
       /* int a=4,b=5, d=4;
         boolean b2= b>d && a<b;
        System.out.println(b2);//true
        System.out.println(b>=d || a<d);//true
        System.out.println(!(a==d));//false
        boolean b3 =!(b<d);
        System.out.println(b3);//true*/
       /* int a=5,b=10,c=5;
        boolean b3= a>b && c++>2;
        System.out.println(b3);*/
      /*  int a=6;
        a+=9;
        System.out.println(a);//15
        a-= 7;
        System.out.println(a);//8
        a*=5;
        System.out.println(a);//40
        a/=2;
        System.out.println(a);//20
        short c=8;
        //c=c+7;//编译错误，需要强转，改为c=(short)(c+7);
        c+=8;//扩展赋值符自带强转功效，相当于c=(short)(c+8);
        System.out.println(c);//16*/

        /*nt age =22;
        System.out.println("我今年"+age+"了");
        String name ="许威";
        System.out.println("我叫"+name+"我今年"+age+"了家住河南省");
        System.out.println(200-50+""+60);
        System.out.println(3*60+""+100);
        System.out.println(""+90+60+10);
        System.out.println(10+10+10+"");*/
        int num =2;
        int flag =num>1?4:9;
        System.out.println(flag);
        //找两个数中的最大值
        int a=6,b=9;
        int max =a<b?b:a;
        System.out.println(max);




























    }
}
